package unit.blog;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.wo2record.blog.model.ArticleTag;
import com.wo2record.blog.service.ArticleTagService;

public class ArticleTagTestUtil {
	public static ArticleTagService getArticleService(){
		ApplicationContext ctx = new ClassPathXmlApplicationContext("app-context.xml");
		ArticleTagService articleTagService = (ArticleTagService)ctx.getBean("articleTagService");
		return articleTagService;
	}
	
	public static ArticleTag makeArticleTag(){
		ArticleTag articleTag = new ArticleTag();
		articleTag.setTag(String.valueOf(System.currentTimeMillis()));
		return articleTag;
	}
}
